package com.chihuo.bussiness;

import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.chihuo.util.JaxbDateSerializer;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class AllDomain implements java.io.Serializable {
	@XmlElement
	private List<Category> categories;
	@XmlElement
	private List<Recipe> recipes;
	@XmlElement
	private List<Desk> desks;
	@XmlElement
	@XmlJavaTypeAdapter(JaxbDateSerializer.class)
	private Date date;

	public AllDomain(List<Category> categories, List<Recipe> recipes,
			List<Desk> desks, Date date) {
		super();
		this.categories = categories;
		this.recipes = recipes;
		this.desks = desks;
		this.date = date;
	}

	public AllDomain() {
	}

	public List<Category> getCategories() {
		return categories;
	}

	public void setCategories(List<Category> categories) {
		this.categories = categories;
	}

	public List<Recipe> getRecipes() {
		return recipes;
	}

	public void setRecipes(List<Recipe> recipes) {
		this.recipes = recipes;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public List<Desk> getDesks() {
		return desks;
	}

	public void setDesks(List<Desk> desks) {
		this.desks = desks;
	}
}
